runtime.schedt.nmspinning (field)
15 uses
runtime (current package)
proc.go#L999: sched.nmspinning.Add(1)
proc.go#L3030: if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
proc.go#L3093: if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {
proc.go#L3108: if sched.nmspinning.Add(-1) < 0 {
proc.go#L3184: if sched.nmspinning.Add(-1) < 0 {
proc.go#L3360: if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
proc.go#L3494: if sched.nmspinning.Add(-1) < 0 {
proc.go#L3854: nmspinning := sched.nmspinning.Add(-1)
proc.go#L6006: sched.nmspinning.Add(1)
proc.go#L6247: if runqempty(pp) && sched.nmspinning.Load()+sched.npidle.Load() > 0 && pd.syscallwhen+10*1000*1000 > now {
proc.go#L6341: print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle.Load(), " threads=", mcount(), " spinningthreads=", sched.nmspinning.Load(), " needspinning=", sched.needspinning.Load(), " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)
proc.go#L7156: if i >= active_spin || ncpu <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
runtime2.go#L798: nmspinning atomic.Int32 // See "Worker thread parking/unparking" comment in proc.go.
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |